.t-anchor_div {
  &.z-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
  }
}

.t-anchorTop {
  position: relative;

  &.z-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
  }
}

.t-anchor {
  position: relative;
  z-index: 500;
  overflow: hidden;

  .t-anchor-wrap {
    position: relative;
    padding: 16px;
    padding-bottom: 36px;
    // background: #fff;
    // box-shadow: 0 0 3px 0 #e8e8e8;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    // width: 188px;
    overflow: hidden;

    &.f-left {
      float: left;
    }

    &.f-right {
      float: right;
    }
  }

  &.z-fixed {
    position: fixed;
    z-index: 500;
    top: 0;
    right: 0;

    &.z-left {
      left: 0;
      right: auto;
    }
  }

  &.e-mobile {
    margin-right: 0;
    right: 0;
    top: 100px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 8px;
    transition: all ease 0.5s;
    font-size: 13px;

    &.z-hide {
      transform: translateX(100px);
      background-color: rgba(0, 0, 0, 0.15);
    }

    .anchor {
      line-height: 33px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.75);

      &:hover,
      &:focus-visible {
        outline: none;
        color: rgba(255, 255, 255, 0.75);

        .i-dot {
          border-color: rgba(255, 255, 255, 0.3);
        }
      }

      &:last-child {
        border-bottom: none;
      }

      .i-dot {
        border-color: rgba(255, 255, 255, 0.3);
      }

      &.z-on {
        color: var(--t-color);

        .i-dot {
          border-color: var(--t-color);
        }
      }
    }
  }

  &.z-left {
    text-align: right;

    .i-square {
      right: 36px;
      left: inherit;
    }

    .anchor {
      padding-right: 30px;
      padding-left: 0;
      cursor: pointer;

      &::after {
        right: 6px;
        left: auto;
      }

      .i-dot {
        right: 3px;
        left: auto;
      }

      &::before {
        right: 24px;
        left: auto;
      }
    }
  }

  .i-square {
    position: absolute;
    display: block;
    top: 10px;
    left: 26px;
    width: 2px;
    height: 11px;
    border-radius: 1px;
    transition: all ease 0.2s;
    background-color: var(--t-color);
  }

  .anchor {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 156px;
    line-height: 28px;
    height: 29px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-wrap: normal;
    padding-left: 26px;
    cursor: pointer;
    color: rgba(0, 0, 0, var(--t-color-opacity, /*批量处理90%透明度*/0.9));

    &::before {
      content: '';
      position: absolute;
      z-index: -1;
      top: 0;
      left: 20px;
      display: block;
      width: 138px;
      height: 28px;
      // transform: translateY(-50%);
      background-color: rgba(#f0f2f5, 0);
      transition: all ease 0.24s;
    }

    .q-icon {
      width: 14px;
      height: 14px;
      font-size: 14px;

      &.material-icons {
        width: 18px;
        height: 18px;
        font-size: 18px;
      }

      &.icon-t-close {
        width: 12px;
        height: 12px;
        font-size: 12px;
      }
    }

    &:last-child {
      margin-bottom: -20px;
    }

    &.s-square {
      &::after,
      .i-dot {
        display: none;
      }

      &::before {
        display: none;
      }

      &:hover,
      &:focus-visible {
        color: rgba(var(--t-color-rgb), 0.7);
      }

      &.z-on {
        color: var(--t-color);
      }
    }

    &::after {
      position: absolute;
      z-index: 1;
      display: block;
      content: '';
      top: 0;
      left: 7px;
      height: 29px;
      width: 1px;
      background-color: rgba(0, 0, 0, 0.05);
    }

    &:first-child {
      &::after {
        top: 10px;
        height: 40px;
      }
    }

    &:last-child {
      &::after {
        top: 0;
        height: 10px;
      }
    }

    .i-dot {
      position: absolute;
      z-index: 2;
      display: block;
      box-sizing: border-box;
      content: '';
      top: 10px;
      left: 3px;
      margin: auto;
      width: 9px;
      height: 9px;
      border: 1px solid rgba(#000, 0.05);
      border-radius: 100%;
      background-color: #e8f1fb;
      transition: all ease 0.2s;
    }

    &:hover,
    &:focus-visible {
      outline: none;
      color: rgba(0, 0, 0, var(--t-color-opacity-hover, /*批量处理95%透明度*/0.95));

      .i-dot {
        background-color: #ddd;
      }

      &::before {
        background-color: #f0f2f5;
      }
    }

    &.z-on {
      color: var(--t-color);

      .i-dot {
        background-color: var(--t-color);
        // transform: scale(1.2);
        border-color: var(--t-color);
      }

      &::before {
        background-color: #f0f2f5;
      }
    }
  }
}

.t-anchorTop {
  .q-tabs {
    .q-tab {
      .q-tab__content {
        .q-icon {
          width: 14px;
          height: 14px;
          font-size: 14px;

          &.material-icons {
            width: 18px;
            height: 18px;
            font-size: 18px;
          }

          &.icon-t-close {
            width: 12px;
            height: 12px;
            font-size: 12px;
          }
        }
      }
    }
  }
}

.text-teld_primary {
  color: var(--t-color) !important;
}

.bg-teld_primary {
  background: var(--t-color) !important;
}
